package com.edu.neusoft.student.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.edu.neusoft.student.domain.Salesrecord;
import com.edu.neusoft.student.mapper.SalesrecordMapper;
@Service
public class SalesrecordService{

    @Resource
    private SalesrecordMapper salesrecordMapper;

    
    public int deleteByPrimaryKey(Integer salesrecordid) {
        return salesrecordMapper.deleteByPrimaryKey(salesrecordid);
    }

    
    public int insert(Salesrecord record) {
        return salesrecordMapper.insert(record);
    }

    
    public int insertSelective(Salesrecord record) {
        return salesrecordMapper.insertSelective(record);
    }

    
    public Salesrecord selectByPrimaryKey(Integer salesrecordid) {
        return salesrecordMapper.selectByPrimaryKey(salesrecordid);
    }

    
    public int updateByPrimaryKeySelective(Salesrecord record) {
        return salesrecordMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Salesrecord record) {
        return salesrecordMapper.updateByPrimaryKey(record);
    }

}
